package com.apes.enquiry.enquiry.model;

import com.apes.framework.jpa.ApesModel;
import com.apes.framework.jpa.BaseModel;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import com.apes.framework.jpa.generator.ApesGenerator;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * 类描述：人工报价页面记录
 *
 * @ClassName FirstBrand
 * @Description 描述
 * @Author wushilong
 * @Date 2023/3/20 16:12
 * @Version 1.0
 */
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = FirstBrand.CONST_TABLE_NAME)
public class FirstBrand extends ApesModel {
    public static final String CONST_TABLE_NAME = "sp_first_brand";

    @Id
    @Column(name = "id", length = 10)
    @ApesGenerator(code = CONST_TABLE_NAME, name = "人工报价页面")
    @Comment("id")
    private String id;

    @Column(name = "party_role_id", length = 32, nullable = false)
    @Comment("供应商id")
    private String partyRoleId;

    @Column(name = "Brand_id", length = 32)
    @Comment("品牌id")
    private String BrandId;

    @Column(name = "OE", length = 32)
    @Comment("零件号")
    private String OE;

    @Column(name = "product_id", length = 32)
    @Comment("供应商商品id")
    private String productId;

    @Column(name = "category_id", length = 32)
    @Comment("配件id")
    private String category;
}
